 
function indexFormatter(value, row, index) {
	options = $("#workflowSelList").bootstrapTable("getOptions");
	rowStart = (options.pageNumber - 1) * options.pageSize;
	return rowStart + index + 1;
}


 
 
/**
 * @description 查询条件与分页数据
 * @time
 */
function queryParams(pageReqeust) {
	if (pageReqeust.limit) {
		// 当前页码
		pageReqeust.pageNum = pageReqeust.offset / pageReqeust.limit + 1;
	} else {
		pageReqeust.limit = 0; // 导出所有
	}
	return pageReqeust;
}
!function(e, t, o) {
	"use strict";
	!function() {
		var ops = {
			url : basePath+"/flowManager/queryAllFlowList",
			method : "post",
			contentType : "application/x-www-form-urlencoded",
			queryParams : queryParams,
			sortable : true, // 是否启用排序
			sortOrder : "desc", // 排序方式
			pageNumber : 1,
			pageSize : 10,
			pageList : [10, 20, 50, 100,200 ],
			pagination : !0,
			sidePagination : "server",
			search : 0,
			showRefresh : !0,
			showToggle : 0,
			showColumns : 0,
			showExport : 0,
			striped : !0,
			iconSize : "outline",
			toolbar : "#toorBar",
			icons : {
				refresh : "glyphicon-repeat"
			},
			responseHandler : function(data) {
				return data
			},
			silent : true, // 刷新事件必须设置
			idField : "id",
			formatLoadingMessage : function() {
				return "请稍等，正在加载中...";
			},
			formatNoMatches : function() { // 没有匹配的结果
				return '无符合条件的记录';
			},
			onLoadError : function(data) {
				$('#workflowSelList').bootstrapTable('removeAll');
			},
			onClickRow : function(row) {
			}
		};
		$(".glyphicon-ok-circle").parent().click(function(){
			   var data=$('#workflowSelList').bootstrapTable('getSelections');
			   $('#flowName').val(data[0].name); 
			   $('#flowId').val(data[0].id); 
			  $('#version').val(data[0].version);
			});
		o("#workflowSelList").bootstrapTable(ops);
	}()
}(document, window, jQuery);